﻿using SqlSugar;
using System;
using System.Collections.Generic;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 日志表
    /// </summary>
    [SugarTable(tableName: "TLogs")]
    public partial class TLog
    {
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        /// <summary>
        /// 主键Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 日志类型 0-系统日期；1-操作日志
        /// </summary>
        public int LogType { get; set; }
        /// <summary>
        /// 操作类型：0-其他；1-登录；2-退出；3-访问；4-新增；5-删除；6-修改；7-提交；8-审核通过；9-审核拒绝；
        /// </summary>
        public int? ActionType { get; set; }
        /// <summary>
        /// 记录类型
        /// </summary>
        public int? RecordType { get; set; }
        /// <summary>
        /// 记录Id
        /// </summary>
        public int? RecordId { get; set; }
        /// <summary>
        /// 操作用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 操作用户真实姓名
        /// </summary>
        public string RealName { get; set; }
        /// <summary>
        /// 日志模块
        /// </summary>
        public string ModuleName { get; set; }
        /// <summary>
        /// 日志描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// IP地址
        /// </summary>
        public string Ipaddress { get; set; }
        /// <summary>
        /// IP所在地
        /// </summary>
        public string IpAddressName { get; set; }
        /// <summary>
        /// 状态 0失败   1成功
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }=DateTime.Now;
        public int? UserId { get; set; }
        /// <summary>
        /// 用户备注
        /// </summary>
        public string UserRemark { get; set; }
    }
}
